<template>
  <h1>1.组件的基本写法</h1>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "About",
});
</script>

<script setup lang="ts">
  import {ref} from 'vue'
  const pearson = ref({
    name:'小明',
    age:18
  })
  console.log(pearson);
</script>